package seventeen;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;

import net.mindview.util.Countries;
import static net.mindview.util.Print.*;

public class CollectionMethods {

	public static void main(String[] args) {
		Collection<String> c = new ArrayList<String>();
		c.addAll(Countries.names(6));
		c.add("ten");
		c.add("eleven");
		print(c);
		Object[] array = c.toArray();
		String[] str = c.toArray(new String[0]);
		print("Collections.max(c) = "+Collections.max(c));
		print(Collections.min(c));
		
		Collection<String> c2 = new ArrayList<String>();
		c2.addAll(Countries.names(6));
		c.addAll(c2);
	}

}





















